Part Number Hot Search : 
TDA1013B 3539UCP TPL102 2SA95 CXP81800 PE44205 1N5788 RCB0610
Product Description
Full Text Search
 

To Download AS5040 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 AS5040 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
AS5040 10 BIT 360 PROGRAMMABLE MAGNETIC ROTARY ENCODER
DATA SHEET
1
General Description
1.2
-
Key Features
Contactless high resolution rotational position encoding over a full turn of 360 degrees Two digital 10bit absolute outputs: - Serial interface and - Pulse width modulated (PWM) output Three incremental output modes: - Quadrature A/B and Index output signal - Step / Direction and Index output signal - 3-phase commutation for brushless DC motors - 10, 9, 8 or 7 bit user programmable resolution User programmable zero / index position Failure detection mode for magnet placement monitoring and loss of power supply Rotational speeds up to 10,000 rpm Push button functionality detects movement of magnet in Z-axis Serial read-out of multiple interconnected AS5040 devices using Daisy Chain mode Wide temperature range: - 40C to + 125C Fully automotive qualified to AEC-Q100, grade 1 Small Pb-free package: SSOP 16 (5.3mm x 6.2mm)
The AS5040 is a contactless magnetic rotary encoder for accurate angular measurement over a full turn of 360. It is a system-on-chip, combining integrated Hall elements, analog front end and digital signal processing in a single device. To measure the angle, only a simple two-pole magnet, rotating over the center of the chip, is required. The magnet may be placed above or below the IC. The absolute angle measurement provides instant indication of the magnet's angular position with a resolution of 0.35 = 1024 positions per revolution. This digital data is available as a serial bit stream and as a PWM signal. Furthermore, a user-programmable incremental output is available, making the chip suitable for replacement of various optical encoders. An internal voltage regulator allows the AS5040 to operate at either 3.3 V or 5 V supplies
-
-
1.3
-
Applications
Figure 1: Typical arrangement of AS5040 and magnet
Industrial applications: - Contactless rotary position sensing - Robotics - Brushless DC motor commutation - Power tools Automotive applications: - Steering wheel position sensing - Gas pedal position sensing - Transmission gearbox encoder - Headlight position control - Power seat position indicator Office equipment: printers, scanners, copiers Replacement of optical encoders Front panel rotary switches Replacement of potentiometers
1.1
-
Benefits
Complete system-on-chip Flexible system solution provides absolute, PWM and incremental outputs simultaneously Ideal for applications in harsh environments due to contactless position sensing Tolerant to magnet misalignment and airgap variations No temperature compensation necessary No calibration required
-
-
Revision 1.6, 03-Oct-06
www.austriamicrosystems.com
Page 1 of 28
AS5040 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
2
Pin Configuration
Pin
MagINCn MagDECn A_LSB_U B_Dir_V NC Index_W VSS Prog
1 2 16 15
Symbol
MagINCn
Type
DO_OD
Description
Magnet Field Magnitude INCrease; active low, indicates a distance reduction between the magnet and the device surface. Magnet Field Magnitude DECrease; active low, indicates a distance increase between the device and the magnet. Mode1.x: Quadrature A channel Mode2.x: Least Significant Bit Mode3.x: U signal (phase1) Mode1.x: Quadrature B channel quarter period shift to channel A. Mode2.x: Direction of Rotation Mode3.x: V signal (phase2) Must be left unconnected Mode1.x and Mode2.x : Index signal indicates the absolute zero position Mode3.x: W signal (phase3) Negative Supply Voltage (GND) OTP Programming Input and Data Input for Daisy Chain mode. Internal pulldown resistor (~74k). May be connected to VSS if programming is not used Data Output of Synchronous Serial Interface Clock Input of Synchronous Serial Interface; SchmittTrigger input Chip Select, active low; Schmitt-Trigger input, internal pull-up resistor (~50k) connect to VSS in incremental mode (see 5.2.1) Pulse Width Modulation of approx. 1kHz; LSB in Mode3.x Must be left unconnected Must be left unconnected 3V-Regulator Output (see Figure 18) Positive Supply Voltage 5 V
VDD5V VDD3V3 NC NC PWM_LSB CSn CLK DO
3 4 5 6 7 8
1
Figure 2: Pin configuration SSOP16
AS5040
14 13 12 11 10 9
2
MagDECn
DO_OD
3
A_LSB_U
DO
4 5 6 7
B_Dir_V NC Index_ W VSS
DO DO S
2.1
Pin Description
Table 2 shows the description of each pin of the standard SSOP16 package (Shrink Small Outline Package, 16 leads, body size: 5.3mm x 6.2mmm; see Figure 2). Pins 7, 15 and 16 are supply pins, pins 5, 13 and 14 are for internal use and must not be connected. Pins 1 and 2 are the magnetic field change indicators, MagINCn and MagDECn (magnetic field strength increase or decrease through variation of the distance between the magnet and the device). These outputs can be used to detect the valid magnetic field range. Furthermore those indicators can also be used for contact-less push-button functionality. Pins 3, 4 and 6 are the incremental pulse output pins. The functionality of these pins can be configured through programming the one-time programmable (OTP) register: Output Mode 1.x: quadrature 2.x:step/direction 3.x: commutation Pin 3 A LSB U Pin 4 B Direction V Pin 6 Index Index W Pin 12 PWM PWM LSB
8
Prog
DI_PD
9 10
DO CLK
DO_T DI, ST DI_PU, ST DO S S
11
CSn
12 13 14 15 16
PWM_LSB NC NC VDD3V3 VDD5V
Table 2: Pin description SSOP16 DO_OD DO DI_PD DI_PU digital digital digital digital output open drain output input pull-down input pull-up S DI DO_T ST supply pin digital input digital output /tri-state Schmitt-Trigger input
Table 1: Pin assignment for the different incremental output modes
Mode 1.x: Quadrature A/B Output: Represents the default quadrature A/B signal mode.
Mode 3.x: Brushless DC Motor Commutation Mode: Mode 2.x: Step / Direction Output: Configures pin 3 to deliver up to 512 pulses (up to 1024 state changes) per revolution. It is equivalent to the LSB (least significant bit) of the absolute position value. Pin 4 provides the information of the rotational direction. Both modes (mode 1.x and mode 2.x) provide an index signal (1 pulse/revolution) with an adjustable width of one LSB or three LSB's. In addition to the absolute encoder output over the SSI interface, this mode provides commutation signals for brushless DC motors with either one pole pair or two pole pair rotors. The commutation signals are usually provided by 3 discrete Hall switches, which are no longer required, as the AS5040 can fulfill two tasks in parallel: absolute encoder + BLDC motor commutation. In this mode, pin 12 provides the LSB output instead of the PWM (Pulse-Width-Modulation) signal.
Revision 1.6, 03-Oct-06
www.austriamicrosystems.com
Page 2 of 28
AS5040 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
Pin 8 (Prog) is also used to program the different incremental interface modes, the incremental resolution and the zero position into the OTP (see page 11). This pin is also used as digital input to shift serial data through the device in Daisy Chain configuration, (see page 5). Pin 11 Chip Select (CSn; active low) selects a device within a network of AS5040 encoders and initiates serial data transfer. A logic high at CSn puts the data output pin (DO) to tri-state and terminates serial data transfer. This pin is also used for alignment mode (page 13) and programming mode (page 9). Pin 12 allows a single wire output of the 10-bit absolute position value. The value is encoded into a pulse width modulated signal with 1s pulse width per step (1s to 1024s over a full turn). By using an external low pass filter, the digital PWM signal is converted into an analog voltage, allowing a direct replacement of potentiometers.
position information. For this purpose a Coordinate Rotation Digital Computer (CORDIC) calculates the angle and the magnitude of the Hall array signals. The DSP is also used to provide digital information at the outputs M a g I N C n and M a g D E C n that indicate movements of the used magnet towards or away from the device's surface. A small low cost diametrically magnetized (two-pole) standard magnet provides the angular position information (see Figure 19). The AS5040 senses the orientation of the magnetic field and calculates a 10-bit binary code. This code can be accessed via a Synchronous Serial Interface (SSI). In addition, an absolute angular representation is given by a Pulse Width Modulated signal at pin 12 (PWM). Besides the absolute angular position information the device simultaneously provides incremental output signals. The various incremental output modes can be selected by programming the OTP mode register bits (see page 11). As long as no programming voltage is applied to pin Prog, the new setting may be overwritten at any time and will be reset to default when power is turned off. To make the setting permanent, the OTP register must be programmed (see Figure 14). The default setting is a quadrature A/B mode including the Index signal with a pulse width of 1 LSB. The Index signal is logic high at the user programmable zero position. The AS5040 is tolerant to magnet misalignment and magnetic stray fields due to differential measurement technique and Hall sensor conditioning circuitry.
3
Functional Description
The AS5040 is manufactured in a CMOS standard process and uses a spinning current Hall technology for sensing the magnetic field distribution across the surface of the chip. The integrated Hall elements are placed around the center of the device and deliver a voltage representation of the magnetic field at the surface of the IC. Through Sigma-Delta Analog / Digital Conversion and Digital Signal-Processing (DSP) algorithms, the AS5040 provides accurate high-resolution absolute angular
VDDV3V
MagINCn VDD5V
LDO 3.3V PWM Interface
Sin Ang
MagDECn
PWM_LSB
DSP Hall Array & Frontend Amplifier
Cos Mag
Absolute Interface (SSI)
DO CSn
CLK
OTP Register
A_LSB_U
Programming Parameters
Incremental Interface
B_Dir_V Index_W
Prog
Figure 3: AS5040 block diagram Revision 1.6, 03-Oct-06 www.austriamicrosystems.com Page 3 of 28
AS5040 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
4
4.1
CSn
10-bit Absolute Angular Position Output
Synchronous Serial Interface (SSI)
t CLK FE T CLK / 2
1 8 16
t CSn
t CLK FE
CLK
1
DO
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
OCF
COF
LIN
M ag IN C
M a g Even D EC PAR
D9
t DO active
t DO valid
Angular Position Data
Status Bits
t DO Tristate
Figure 4: Synchronous serial interface with absolute angular position data
If CSn changes to logic low, Data Out (DO) will change from high impedance (tri-state) to logic high and the read-out will be initiated. After a minimum time tCLK FE, data is latched into the output shift register with the first falling edge of CLK. Each subsequent rising CLK edge shifts out one bit of data. The serial word contains 16 bits, the first 10 bits are the angular information D[9:0], the subsequent 6 bits contain system information, about the validity of data such as OCF, COF, LIN, Parity and Magnetic Field status (increase/decrease) . A subsequent measurement is initiated by a log. "high" pulse at CSn with a minimum duration of tCSn.
used, but can contain invalid data. This warning may be resolved by bringing the magnet within the X-Y-Z tolerance limits. MagINCn, (Magnitude Increase) becomes HIGH, when the magnet is pushed towards the IC, thus the magnetic field strength is increasing. MagDECn, (Magnitude Decrease) becomes HIGH, when the magnet is pulled away from the IC, thus the magnetic field strength is decreasing. Both signals HIGH indicate a magnetic field that is out of the allowed range (see Table 3).
Mag INCn Mag DECn Description
0 0
0 1
No distance change Magnetic Input Field OK (in range) Distance increase: Pull-function. This state is dynamic, it is only active while the magnet is moving away from the chip in Z-axis Distance decrease: Push- function. This state is dynamic, it is only active while the magnet is moving towards the chip in Z.axis. Magnetic Input Field invalid - out of range: too large, too small (missing magnet)
Data Content:
D9:D0 absolute angular position data (MSB is clocked out first) OCF (Offset Compensation Finished), logic high indicates the finished Offset Compensation Algorithm. For fast startup, this bit may be polled by the external microcontroller. As soon as this bit is set, the AS5040 has completed the startup and the data is valid (see Table 4) COF (Cordic Overflow), logic high indicates an out of range error in the CORDIC part. When this bit is set, the data at D9:D0 is invalid. The absolute output maintains the last valid angular value. This alarm may be resolved by bringing the magnet within the X-Y-Z tolerance limits. LIN (Linearity Alarm), logic high indicates that the input field generates a critical output linearity. When this bit is set, the data at D9:D0 may still be
Revision 1.6, 03-Oct-06
1
0
1
1
Table 3: Magnetic magnitude variation indicator
Note: Pins 1 and 2 (MagINCn, MagDECn) are open drain outputs and require external pull-up resistors. If the magnetic field is in range, both outputs are turned off. The two pins may also be combined with a single pull-up resistor. In this case, the signal is high when the magnetic field is in range. It is low in all other cases (see Table 3). Even Parity bit for transmission error detection of bits 1...15 (D9...D0, OCF, COF, LIN, MagINCn, MagDECn)
www.austriamicrosystems.com
Page 4 of 28
AS5040 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
The absolute angular output is always set to a resolution of 10 bit. Placing the magnet above the chip, angular values increase in clockwise direction by default. Data D9:D0 is valid, when the status bits have the following configurations: OCF COF LIN Mag INCn 0 1 0 0 0 1 Mag DECn 0 1 0 Parity even checksum of bits 1:15
4.2
Daisy Chain Mode
The Daisy Chain mode allows connection of several AS5040's in series, while still keeping just one digital input for data transfer (see "Data IN" in Figure 5 below). This mode is accomplished by connecting the data output (DO; pin 9) to the data input (Prog; pin 8) of the subsequent device. The serial data of all connected devices is read from the DO pin of the first device in the chain. The Prog pin of the last device in the chain should be connected to VSS. The length of the serial bit stream increases with every connected device, it is n * (16+1) bits: e.g. 34 bit for two devices, 51 bit for three devices, etc... The last data bit of the first device (Parity) is followed by a logic low bit and the first data bit of the second device (D9), etc... (see Figure 6). 4.2.1 Programming Daisy Chained Devices
Table 4: Status bit outputs
The absolute angular position is sampled at a rate of 10kHz (0.1ms). This allows reading of all 1024 positions per 360 degrees within 0.1 seconds = 9.76Hz (~10Hz) without skipping any position. Multiplying 10Hz by 60, results the corresponding maximum rotational speed of 600 rpm. Readout of every second angular position allows for rotational speeds of up to 1200rpm. Consequently, increasing the rotational speed reduces the number of absolute angular positions per revolution (see Table 7). Regardless of the rotational speed or the number of positions to be read out, the absolute angular value is always given at the highest resolution of 10 bit. The incremental outputs are not affected by rotational speed restrictions due to the implemented interpolator. The incremental output signals may be used for highspeed applications with rotational speeds of up to 10,000 rpm without missing pulses.
In Daisy Chain mode, the Prog pin is connected directly to the DO pin of the subsequent device in the chain (see Figure 5). During programming (see section 9), a programming voltage of 7.5V must be applied to pin Prog. This voltage level exceeds the limits for pin DO, so one of the following precautions must be made during programming: * * open the connection programming or DO Prog during
add a Schottky diode between DO and Prog (Anode = DO, Cathode = Prog)
Due to the parallel connection of CLK and CSn, all connected devices may be programmed simultaneously.
C
Data IN
AS5040 1st Device
DO Prog
AS5040 2nd Device
DO Prog
AS5040 last Device
DO Prog
CSn CLK CSn
CLK
CSn
CLK
CSn
CLK
Figure 5: Daisy Chain hardware configuration
Revision 1.6, 03-Oct-06
www.austriamicrosystems.com
Page 5 of 28
AS5040 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
CSn
tCLK FE
TCLK/2
1 8 16 D 1 2 3
CLK
DO
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
OCF
COF
LIN
Mag INC
Mag DEC
Even PAR
D9
D8
D7
tDO active
tDO valid
Angular Position Data 1st Device
Status Bits
Angular Position Data 2nd Device
Figure 6: Daisy Chain mode data transfer
5
Incremental Outputs
5.2
LSB Output (Step / Direction Mode)
Three different incremental output modes are possible with quadrature A/B being the default mode. Figure 7 shows the two-channel quadrature as well as the step / direction incremental signal (LSB) and the direction bit in clockwise (CW) and counter-clockwise (CCW) direction.
Output LSB reflects the LSB (least significant bit) of the programmed incremental resolution (OTP Register Bit Div0, Div1). Output Dir provides information about the rotational direction of the magnet, which may be placed above or below the device (1=clockwise; 0=counter clockwise; top view). Dir is updated with every LSB change. In both modes (quad A/B, step/direction) the resolution and the index output are user programmable. The index pulse indicates the zero position and is by default one angular step (1LSB) wide. However, it can be set to three LSBs by programming the Index-bit of the OTP register accordingly (see Table 6).
5.1
Quadrature A/B Output (Quad A/B Mode)
The phase shift between channel A and B indicates the direction of the magnet movement. Channel A leads channel B at a clockwise rotation of the magnet (top view) by 90 electrical degrees. Channel B leads channel A at a counter-clockwise rotation.
Q uad A/B-M ode
A B
M echanical Zero Position
Rotation Direction Change
M echanical Zero Position
Index=0 1LSB
Index
H yst = 2 LSB
Step / Dir-Mode
LSB Dir
Index=1 3 LSB
Clockwise cw
Counterclockwise ccw
CSn
t
Increm ental outputs valid
t
D ir valid
Figure 7: Incremental output modes
Revision 1.6, 03-Oct-06
www.austriamicrosystems.com
Page 6 of 28
AS5040 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
5.2.1
Incremental Power-up Lock Option
After power-up, the incremental outputs can optionally be locked or unlocked, depending on the status of the CSn pin: CSn = low at power-up: CSn has an internal pull-up resistor and must be externally pulled low (Rext 5k). If Csn is low at power-up, the incremental outputs (A, B, Index) will be high until the internal offset compensation is finished. This unique state (A=B=Index = high) may be used as an indicator for the external controller to shorten the waiting time at power-up. Instead of waiting for the specified maximum power up-time (0), the controller can start requesting data from the AS5040 as soon as the state (A=B=Index = high) is cleared. CSn = high or open at power-up: In this mode, the incremental outputs (A, B, Index) will remain at logic high state, until CSn goes low or a low pulse is applied at CSn. This mode allows intentional disabling of the incremental outputs until for example the system microcontroller is ready to receive data.
Incremental Output Indication X +4 X +3 X +2 X +1 X
X
Hysteresis:
0.7
X +1 X +2 X +3 X +4 X +5 Clockwise Direction
Magnet Position
Counterclockwise Direction
Figure 8: Hysteresis window for incremental outputs
6
Pulse Width Modulation (PWM) Output
The AS5040 provides a pulse width modulated output (PWM), whose duty cycle is proportional to the measured angle:
Position =
t on 1025 (ton + toff ) - 1
5.3
Incremental Output Hysteresis
The PWM frequency is internally trimmed to an accuracy of 5% (10% over full temperature range). This tolerance can be cancelled by measuring the complete duty cycle as shown above.
To avoid flickering incremental outputs at a stationary magnet position, a hysteresis is introduced. In case of a rotational direction change, the incremental outputs have a hysteresis of 2 LSB. Regardless of the the hysteresis of highest resolution hysteresis is set to programmed incremental resolution, 2 LSB always corresponds to the of 10 bit. In absolute terms, the 0.704 degrees for all resolutions.
Angle 0 deg (Pos 0)
PWMIN
1s
1025s
For constant rotational directions, every magnet position change is indicated at the incremental outputs (see Figure 8). If for example the magnet turns clockwise from position x+3" to x+4", the incremental output would also indicate this position accordingly. A change of the magnet's rotational direction back to position x+3" means, that the incremental output still remains unchanged for the duration of 2 LSB, until position x+2" is reached. Following this direction, the incremental outputs will again be updated with every change of the magnet position.
PWMAX 359.65 deg (Pos 1023)
1024s
1/fPWM
Figure 9: PWM output signal
Revision 1.6, 03-Oct-06
www.austriamicrosystems.com
Page 7 of 28
AS5040 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
R1,R2 4k7 Parameter PWM frequency MIN pulse width MAX pulse width Symbol fPWM PWMIN PWMAX Typ 0.9756 1 1024 Unit kHz s s Note Signal period: 1025s - Position 0d - Angle 0 deg - Position 1023d - Angle 359,65 deg
C1,C2 1F / 6V
R1 should be 4k7 to avoid loading of the PWM output. Larger values of Rx and Cx will provide better filtering and less ripple, but will also slow down the response time.
Table 5: PWM signal parameters
8
Brushless DC Motor Commutation Mode
7
Analog Output
An analog output may be generated by averaging the PWM signal, using an external active or passive lowpass filter. The analog output voltage is proportional to the angle: 0= 0V; 360 = VDD5V. Using this method, the AS5040 can be used as direct replacement of potentiometers.
Brushless DC motors require angular information for stator commutation. The AS5040 provides U-V-W commutation signals for one and two pole pair motors. In addition to the three-phase output signals, the step (LSB) output at pin 12 allows high accuracy speed measurement. Two resolutions (9 or 10 bit) can be selected by programming Div0 according to Table 6. Mode 3.0 (3.1) is used for brush-less DC motors with one-pole pair rotors. The three phases (U, V, W) are 120 degrees apart, each phase is 180 degrees on and 180 degrees off. Mode 3.2 (3.3) is used for motors with two pole pairs requiring a higher pulse count to ensure a proper current commutation. In this case the pulse width is 256 positions, equal to 90 degrees.
Pin12 PWM
R1
R2
analog out C2
VDD
C1 Pin7 VSS
0V
0
360
Figure 10: Simple passive 2 n d order lowpass filter
The precise physical angle at which the U, V and W signals change state ("Angle" in Figure 11 and Figure 12) is calculated by multiplying each transition position by the angular value of 1 count: Angle [deg] = Position x (360 degree / 1024)
Commutation - Mode 3.0
Width: 512 Steps
(One-pole-pair)
Width: 512 Steps
U V W
CW Direction
Position: Angle: 0
0.0
171
60.12
341
119.88
512
180.0
683
240.12
853
299.88
0
360.0
Figure 11: U, V and V-signals for BLDC motor commutation (Div1=0, Div0=0)
Revision 1.6, 03-Oct-06
www.austriamicrosystems.com
Page 8 of 28
AS5040 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
Commutation - Mode 3.2
Width: 256 Steps
(Two-pole-pairs)
Width: 256 Steps
U V W
CW Direction
Position: Angle: 0
0.0
85
29.88
171
60.12
256
90.0
341
119.88
427
150.12
512
180.0
597
209.88
683
240.12
768
270.00
853
299.88
939
330.12
0
360.0
Figure 12: U, V and W-signals for 2pole BLDC motor commutation (Div1=1; Div0=0)
9
Programming the AS5040
After power-on, programming the AS5040 is enabled with the rising edge of CSn with Prog = high and CLK = low. 16 bit configuration data must be serially shifted into the OTP register via the Prog-pin. The first "CCW" bit is followed by the zero position data (MSB first) and the incremental mode setting as shown in Table 6. Data must be valid at the rising edge of CLK (see Figure 13). After writing data into the OTP register it can be permanently programmed by rising the Prog pin to the programming voltage VPROG. 16 CLK pulses (tPROG) must be applied to program the fuses (Figure 14). To exit the programming mode, the chip must be reset by a poweron-reset. The programmed data is available after the next power-up. Note: During the programming process, the transitions in the programming current may cause high voltage spikes generated by the inductance of the connection cable. To avoid these spikes and possible damage to the IC, the connection wires, especially the signals Prog and VSS must be kept as short as possible. The maximum wire length between the VPROG switching transistor and pin Prog (see Figure 15) should not exceed 50mm (2 inches). To suppress eventual voltage spikes, a 10nF ceramic capacitor should be connected close to pins Prog and VSS. This capacitor is only required for programming, it is not required for normal operation. The clock timing tclk must be selected at a proper rate to ensure that the signal Prog is stable at the rising edge of CLK (see Figure 13). Additionally, the programming supply voltage should be buffered with a 10F capacitor mounted close to the switching transistor. This capacitor aids in providing peak currents during programming.
The specified programming voltage at pin Prog is 7.3 - 7.5V (see section 16.7). To compensate for the voltage drop across the VPROG switching transistor, the applied programming voltage may be set slightly higher (7.5 8.0V, see Figure 15).
OTP Register Contents: CCW Counter Clockwise Bit ccw=0 - angular value increases in clockwise direction ccw=1 - angular value increases in counterclockwise direction Z [9:0] Indx Programmable Zero / Index Position Index Pulse Width Selection: 1LSB / 3LSB Divider Setting of Incremental Output Incremental Output Mode Selection
Div1,Div0 Md1, Md0
9.1
OTP Default Setting
The AS5040 can also be operated without programming. The default, un-programmed setting is shown in Table 6 (Mode 0.0): CCW: 0 = clockwise operation Z9 to Z0: 00 = no programmed zero position Indx: 0 = Index bit width = 1LSB Div0,Div1 : 00 = incremental resolution = 10bit Md0, MD1: 00 = incremental mode = quadrature
Revision 1.6, 03-Oct-06
www.austriamicrosystems.com
Page 9 of 28
AS5040 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
Figure 13: Programming access - write data (section of Figure 14)
Write Data CSn
Programming Mode
Power Off
Prog CLKPROG
Data 1 16
7.5V VDD VProgOff 0V
tLoad PROG
tPrgH tPrgR tPROG
Figure 14: Complete programming sequence
tPROG finished
Figure 15: OTP programming connection of AS5040 (shown with AS5040 demoboard)
Revision 1.6, 03-Oct-06
www.austriamicrosystems.com
USB
Page 10 of 28
AS5040 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
9.2
Incremental Mode Programming
indicated direction, e.g. when the magnet is placed underneath the IC: CCW = 0 - angular value increases clockwise; CCW = 1 - angular value increases counterclockwise. By default, the zero / index position pulse is one LSB wide. It can be increased to a three LSB wide pulse by setting the Index-bit of the OTP register. Further programming options (commutation modes) are available for brushless DC motor-control. Md1 = Md0 = 1 changes the incremental output pins 3, 4 and 6 to a 3-phase commutation signal. Div1 defines the number of pulses per revolution for either a two-pole (Div1=0) or four-pole (Div1=1) rotor. In addition, the LSB is available at pin 12 (the LSB signal replaces the PWM-signal), which allows for high rotational speed measurement of up to 10,000 rpm.
Three different incremental output modes are available. Mode: Md1=0 / Md0=1 sets the AS5040 in quadrature mode. Mode: Md1=1 / Md0=0 sets the AS5040 in step / direction mode (see Table 1) In both modes, the incremental resolution may be reduced from 10 bit down to 9, 8 or 7 bit using the divider OTP bits Div1 and Div0. (see Table 6 below ). Mode: Md1=1 / Md0=1 sets the AS5040 in brushless DC motor commutation mode with an additional LSB incremental signal at pin 12 (PWM_LSB). To allow programming of all bits, the default factory setting is all bits = 0. This mode is equal to mode 1:0 (quadrature A/B, 1LSB index width, 256ppr). The absolute angular output value, by default, increases with clockwise rotation of the magnet (top view). Setting the CCW-bit (see Figure 13) allows reversing the
OTP-Mode-Register-Bit Mode Default (Mode0.0) quadAB-Mode1.0 quadAB-Mode1.1 quadAB-Mode1.2 quadAB-Mode1.3 quadAB-Mode1.4 quadAB-Mode1.5 quadAB-Mode1.6 quadAB-Mode1.7 Step/Dir-Mode2.0 Step/Dir-Mode2.1 Step/Dir -Mode2.2 Step/Dir -Mode2.3 Step/Dir -Mode2.4 Step/Dir -Mode2.5 Step/Dir -Mode2.6 Step/Dir -Mode2.7
Commutation-Mode3.0 Commutation-Mode3.1 Commutation-Mode3.2 Commutation-Mode3.3
Pin # 3 4 6 1LSB 1LSB 3LSBs 1LSB A B 3LSBs 1LSB 3LSBs 1LSB 3LSBs 1LSB 3LSBs 1LSB LSB Dir 3LSBs 1LSB 3LSBs 1LSB 3LSBs U(0) V(120) W(240) LSB PWM 10 bit PWM 10 bit 12
Pulses per Incremental Revolution Resolution ppr 2x256 bit 10
Md1 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1
Md0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1
Div1 0* 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 1 1
Div0 Index 0* 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0* 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0
2x128 2x64 2x32 512 256 128 64 3x1 2x3
9 8 7 10 9 8 7 10 9 10 9
V' U' W' LSB (0, 180) (60,240) (120,300)
Table 6: One Time Programmable (OTP) register options
*Note: Div1, Div0 and Index cannot be programmed in Mode 0:0
Revision 1.6, 03-Oct-06 www.austriamicrosystems.com Page 11 of 28
AS5040 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
9.3
Zero Position Programming
9.6
Analog Readback Mode
Zero position programming is an OTP option that simplifies assembly of a system, as the magnet does not need to be manually adjusted to the mechanical zero position. Once the assembly is completed, the mechanical and electrical zero positions can be matched by software. Any position within a full turn can be defined as the permanent new zero/index position. For zero position programming, the magnet is turned to the mechanical zero position (e.g. the "off"-position of a rotary switch) and the actual angular value is read. This value is written into the OTP register bits Z9:Z0 (see Figure 13) and programmed as described in section 9. This new absolute zero position is also the new Index pulse position for incremental output modes.
Non-volatile programming (OTP) uses on-chip zener diodes, which become permanently low resistive when subjected to a specified reverse current. The quality of the programming process depends on the amount of current that is applied during the programming process (up to 130mA). This current must be provided by an external voltage source. If this voltage source cannot provide adequate power, the zener diodes may not be programmed properly. In order to verify the quality of the programmed bits, an analog level can be read for each zener diode, giving an indication whether this particular bit was properly programmed or not. To put the AS5040 in analog readback mode, a digital sequence must be applied to pins CSn, Prog and CLK as shown in Figure 16. The digital level for this pin depends on the supply configuration (3.3V or 5V; see section 11). The second rising edge on CSn (OutpEN) changes pin Prog to a digital output and the log. high signal at pin Prog must be removed to avoid collision of outputs (grey area in Figure 16). The following falling slope of CSn changes pin Prog to an analog output, providing a reference voltage Vref, that must be saved as a reference for the calculation of the subsequent programmed and unprogrammed OTP bits. Following this step, each rising slope of CLK outputs one bit of data in the reverse order as during programming. (see Figure 16: Md0-MD1-Div0,Div1-Indx-Z0...Z9, ccw) During analog readback, the capacitor at pin Prog (see Figure 15) should be removed to allow a fast readout rate. . If the capacitor is not removed the analog voltage will take longer to stabilize due to the additional capacitance. The measured analog voltage for each bit must be subtracted from the previously measured Vref, and the resulting value gives an indication on the quality of the programmed bit: a reading of <100mV indicates a properly programmed bit and a reading of >1V indicates a properly unprogrammed bit. A reading between 100mV and 1V indicates a faulty bit, which may result in an undefined digital value, when the OTP is read at power-up. Following the 16 th clock (after reading bit "ccw"), the chip must be reset by disconnecting the power supply.
Note: The zero position value may also be modified before programming, e.g. to program an electrical zero position that is 180 (half turn) from the mechanical zero position, just add 512 to the value read at the mechanical zero position and program the new value into the OTP register.
9.4
Repeated OTP Programming
Although a single AS5040 OTP register bit can be programmed only once (from 0 to 1), it is possible to program other, unprogrammed bits in subsequent programming cycles. However, a bit that has already been programmed should not be programmed twice. Therefore it is recommended that bits that are already programmed are set to "0" during a programming cycle.
9.5
Non-permanent Programming
It is also possible to re-configure the AS5040 in a nonpermanent way by overwriting the OTP register. This procedure is essentially a "Write Data" sequence (see Figure 13) without a subsequent OTP programming cycle. The "Write Data" sequence may be applied at any time during normal operation. This configuration remains set while the power supply voltage is above the power-on reset level (see 16.5). See Application Note AN5000-20 for further information.
Revision 1.6, 03-Oct-06
www.austriamicrosystems.com
Page 12 of 28
AS5040 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
P ro g E N CSn
O u tp E N
A n a lo g R e a d b a c k D a ta a t P ro g
P o w e r-o n R e s e t; tu rn o ff s u p p ly
V re f P ro g
In te rn a l te s t b it d ig ita l
V p ro g ra m m e d M d 0 M d 1 D iv 0 D iv 1 V u n p ro g ra m m e d Z 5 1 Z6 Z7 Z8 Z9 ccw 16
P ro g c h a n g e s to O u tp u t
CLK t L o a d P ro g
C L K A re a d
Figure 16: OTP register analog read
10 Alignment Mode
The alignment mode simplifies centering the magnet over the chip to gain maximum accuracy and XY-alignment tolerance. This electrical centering method allows a wider XYalignment tolerance (0.485mm radius) than mechanical centering (0.25mm radius) as it eliminates the placement tolerance of the die within the IC package (+/- 0.235mm). Alignment mode can be enabled with the falling edge of CSn while Prog = logic high (Figure 17). The Data bits D9-D0 of the SSI change to a 10-bit displacement amplitude output. A high value indicates large X or Y displacement, but also higher absolute magnetic field strength. The magnet is properly aligned, when the difference between highest and lowest value over one full turn is at a minimum. Under normal conditions, a properly aligned magnet will result in a reading of less than 32 over a full turn. The MagINCn and MagDECn indicators will be = 1 when the alignment mode reading is < 32. At the same time, both hardware pins MagINCn (#1) and MagDECn (#2) will be pulled to VSS. A properly aligned magnet will therefore produce a MagINCn = MagDECn = 1 signal throughout a full 360 turn of the magnet. Stronger magnets or short gaps between magnet and IC may show values larger than 32. These magnets are still properly aligned as long as the difference between highest and lowest value over one full turn is at a minimum. The alignment mode can be reset to normal operation mode by a power-on-reset (disconnect / re-connect power supply).
Prog
AlignMode enable
CSn
Read-out via SSI
2s 2s min. min.
Figure 17: Enabling the alignment mode
11 3.3V / 5V Operation
The AS5040 operates either at 3.3V 10% or at 5V 10%. This is made possible by an internal 3.3V LowDropout (LDO) voltage regulator. The internal supply voltage is always taken from the output of the LDO, meaning that the internal blocks are always operating at 3.3V. For 3.3V operation, the LDO must be bypassed by connecting VDD3V3 with VDD5V (see Figure 18). For 5V operation, the 5V supply is connected to pin VDD5V, while VDD3V3 (LDO output) must be buffered by a 1...10F capacitor, which is supposed to be placed close to the supply pin (see Figure 18). The VDD3V3 output is intended for internal use only It must not be loaded with an external load. The output voltage of the digital interface I/O's corresponds to the voltage at pin VDD5V, as the I/O buffers are supplied from this pin (see Figure 18).
Revision 1.6, 03-Oct-06
www.austriamicrosystems.com
Page 13 of 28
AS5040 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
5V Operation
1...10F
12 Choosing the Proper Magnet
VDD3V3
100n
Typically the magnet should be 6mm in diameter and 2.5mm in height. Magnetic materials such as rare earth AlNiCo, SmCo5 or NdFeB are recommended.
VDD5V
LDO
Internal VDD DO
4.5 - 5.5V
I N T E R F A C E
PWM_LSB CLK CSn A_LSB_U B_Dir_V Index_W Prog
The magnet's field strength perpendicular to the die surface should be verified using a gauss-meter. The magnetic field Bv at a given distance, along a concentric circle with a radius of 1.1mm (R1), should be in the range of 45mT...75mT. (see Figure 19).
typ. 6mm diameter
VSS
N
S
Magnet axis R1
3.3V Operation
VDD3V3
100n
Magnet axis
VDD5V
LDO
Internal VDD DO
Vertical field component
3.0 - 3.6V
I N T E R F A C E
PWM_LSB CLK CSn A_LSB_U B_Dir_V Index_W Prog
R1 concentric circle; radius 1.1mm Vertical field component Bv (45...75mT)
VSS
Figure 18: Connections for 5V / 3.3V supply voltages
0
360
360
A buffer capacitor of 100nF is recommended in both cases close to pin VDD5V. Note that pin VDD3V3 must always be buffered by a capacitor. It must not be left floating, as this may cause an instable internal 3.3V supply voltage which may lead to larger than normal jitter of the measured angle..
Figure 19: Typical magnet and magnetic field distribution
Revision 1.6, 03-Oct-06
www.austriamicrosystems.com
Page 14 of 28
AS5040 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
Magnet Placement:
12.1 Physical Placement of the Magnet
The best linearity can be achieved by placing the center of the magnet exactly over the defined center of the IC package as shown in Figure 20:
3.9 mm
1
3.9 mm
The magnet's center axis should be aligned within a displacement radius Rd of 0.25mm from the defined center of the IC with reference to the edge of pin #1 (see Figure 20). This radius includes the placement tolerance of the chip within the SSOP-16 package (+/- 0.235mm). The displacement radius Rd is 0.485mm with reference to the center of the chip (see section 10: Alignment Mode) The vertical distance should be chosen such that the magnetic field on the die surface is within the specified limits (see Figure 19). The typical distance "z" between the magnet and the package surface is 0.5mm to 1.8mm with the recommended magnet (6mm x 2.5mm). Larger gaps are possible, as long as the required magnetic field strength stays within the defined limits. A magnetic field outside the specified range may still produce usable results, but the out-of-range condition will be indicated by MagINCn (pin 1) and MagDECn (pin 2), see Table 3.
2.433 mm Defined center
Rd
2.433 mm Area of recommended maximum magnet misalignment
Figure 20: Defined IC center and magnet displacement radius
N
Die surface
S
Package surface
z
0.576mm 0.1mm 1.282mm 0.15mm
Figure 21: Vertical placement of the magnet
13 Simulation Modelling
3.9 mm 0.235mm
1
2.433 mm 0.235mm X1
Y1 X2
With reference to Figure 22, a diametrically magnetized permanent magnet is placed above or below the surface of the AS5040. The chip uses an array of Hall sensors to sample the vertical vector of a magnetic field distributed across the device package surface. The area of magnetic sensitivity is a circular locus of 1.1mm radius with respect to the center of the die. The Hall sensors in the area of magnetic sensitivity are grouped and configured such that orthogonally related components of the magnetic fields are sampled differentially. The differential signal Y1-Y2 will give a sine vector of the magnetic field. The differential signal X1-X2 will give an orthogonally related cosine vector of the magnetic field. The angular displacement () of the magnetic source with reference to the Hall sensor array may then be modelled by:
Y2
AS5040 die
Center of die
Radius of circular Hall sensor array: 1.1mm radius
Figure 22: Arrangement of Hall sensor array on chip (principle)
= arctan
(Y 1 - Y 2) 0.5 ( X 1 - X 2)
Revision 1.6, 03-Oct-06
www.austriamicrosystems.com
Page 15 of 28
AS5040 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
The 0.5 angular error assumes a magnet optimally aligned over the center of the die and is a result of gain mismatch errors of the AS5040. Placement tolerances of the die within the package are 0.235mm in X and Y direction, using a reference point of the edge of pin #1 (Figure 22). In order to neglect the influence of external disturbing magnetic fields, a robust differential sampling and ratiometric calculation algorithm has been implemented. The differential sampling of the sine and cosine vectors removes any common mode error due to DC components introduced by the magnetic source itself or external disturbing magnetic fields. A ratiometric division of the sine and cosine vectors removes the need for an accurate absolute magnitude of the magnetic field and thus accurate Z-axis alignment of the magnetic source.
The recommended differential input range of the magnetic field strength (B(X1-X2),B(Y1-Y2)) is 75mT at the surface of the die. In addition to this range, an additional offset of 5mT, caused by unwanted external stray fields is allowed.
The chip will continue to operate, but with degraded output linearity, if the signal field strength is outside the recommended range. Too strong magnetic fields will introduce errors due to saturation effects in the internal preamplifiers. Too weak magnetic fields will introduce errors due to noise becoming more dominant.
14 Failure Diagnostics
The AS5040 also offers several diagnostic and failure detection features:
14.1 Magnetic Field Strength Diagnosis
By software: the MagINCn and MagDECn status bits will both be high when the magnetic field is out of range. By hardware: Pins #1 (MagINCn) and #2 (MagDECn) are open-drain outputs and will both be turned on (= low with external pull-up resistor) when the magnetic field is out of range. If only one of the outputs is low, the magnet is either moving towards the chip (MagINCn) or away from the chip (MagDECn).
By hardware: The MagINCn and MagDECn pins are open drain outputs and require external pull-up resistors. In normal operation, these pins are high ohmic and the outputs are high (see Table 3). In a failure case, either when the magnetic field is out of range or the power supply is missing, these outputs will become low. To ensure adequate low levels in case of a broken power supply to the AS5040, the pull-up resistors (>10k) from each pin must be connected to the positive supply at pin 16 (VDD5V). By hardware: PWM output: The PWM output is a constant stream of pulses with 1kHz repetition frequency. In case of power loss, these pulses are missing. By hardware: Incremental outputs: In normal operation, pins A(#3), B(#4) and Index (#6) will never be high at the same time, as Index is only high when A=B=low. However, after a power-on-reset, if VDD is powered up or restarts after a power supply interruption, all three outputs will remain in high state until pin CSn is pulled low. If CSn is already tied to VSS during power-up, the incremental outputs will all be high until the internal offset compensation is finished (within tPwrUp).
14.2 Power Supply Failure Detection
By software: If the power supply to the AS5040 is interrupted, the digital data read by the SSI will be all "0"s. Data is only valid, when bit OCF is high, hence a data stream with all "0"s is invalid. To ensure adequate low levels in the failure case, a pull-down resistor (~10k) should be added between pin DO and VSS at the receiving side.
Revision 1.6, 03-Oct-06
www.austriamicrosystems.com
Page 16 of 28
AS5040 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
15 Angular Output Tolerances
15.1 Accuracy
Accuracy is defined as the error between measured angle and actual angle. It is influenced by several factors: the non-linearity of the analog-digital converters, internal gain and mismatch errors, non-linearity due to misalignment of the magnet As a sum of all these errors, the accuracy with centered magnet = (Errmax - Errmin)/2 is specified as better than 0.5 degrees @ 25C (see igure 24). Misalignment of the magnet further reduces the accuracy. Figure 23 shows an example of a 3D-graph displaying non-linearity over XY-misalignment. The center of the square XY-area corresponds to a centered magnet (see dot in the center of the graph). The X- and Y- axis extends to a misalignment of 1mm in both directions. The total misalignment area of the graph covers a square of 2x2 mm (79x79mil) with a step size of 100m. For each misalignment step, the measurement as shown in igure 24 is repeated and the accuracy (Errmax - Errmin)/2 (e.g. 0.25 in igure 24) is entered as the Z-axis in the 3D-graph.
Linearity Error over XY-misalignment []
6
5
4 3 2 1 0 0 1000 800 600 -200 -400 400 -600 200 0 -200 -800 -400 -600 -1000 -800 -1000 x 1000 800 600 400 200
y
Figure 23: Example of linearity error over XY misalignment
The maximum non-linearity error on this example is better than 1 degree (inner circle) over a misalignment radius of ~0.7mm. For volume production, the placement tolerance of the IC within the package (0.235mm) must also be taken into account. The total nonlinearity error over process tolerances, temperature and a misalignment circle radius of 0.25mm is specified better than 1.4 degrees. The magnet used for this measurement was a cylindrical NdFeB (Bomatec(R) BMN-35H) magnet with 6mm diameter and 2.5mm in height.
linearity error with centered magnet [degrees] 0.5 0.4 0.3 0.2 0.1 0 -0.1 -0.2 -0.3 -0.4 -0.5 1 55 109 163 217 271 325 379 433 487 541 595 649 703 757 811 865 919 973
transition noise Err m ax
Err m in
igure 24: Example of linearity error over 360
Revision 1.6, 03-Oct-06
www.austriamicrosystems.com
Page 17 of 28
AS5040 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
15.2 Transition Noise
Transition noise is defined as the jitter in the transition between two steps. Due to the nature of the measurement principle (Hall sensors + Preamplifier + ADC), there is always a certain degree of noise involved. This transition noise voltage results in an angular transition noise at the outputs. It is specified as 0.12 degrees rms (1 sigma) *1 .
Absolute Mode: With the given sampling rate of 10.4 kHz, the number of samples (n) per turn for a magnet rotating at high speed can be calculated by:
n=
60 rpm 96 s
In practice, there is no upper speed limit. The only restriction is that there will be fewer samples per revolution as the speed increases. Regardless of the rotational speed, the absolute angular value is always sampled at the highest resolution of 10 bit. Likewise, for a given number of samples per revolution (n), the maximum speed can be calculated by:
This is the repeatability of an indicated angle at a given mechanical position. The transition noise has different implications on the type of output that is used: Absolute output; SSI interface: The transition noise of the absolute output can be reduced by the user by applying an averaging of readings. An averaging of 4 readings will reduce the transition noise by 6dB or 50%, e.g. from 0.12rms to 0.06rms (1 sigma). PWM interface: If the PWM interface is used as an analog output by adding a low pass filter, the transition noise can be reduced by lowering the cutoff frequency of the filter. If the PWM interface is used as a digital interface with a counter at the receiving side, the transition noise may again be reduced by averaging of readings. Incremental mode: In incremental mode, the transition noise influences the period, width and phase shift of the output signals A, B and Index. However, the algorithm used to generate the incremental outputs guarantees no missing or additional pulses even at high speeds (up to 10,000 rpm and higher)
rpm =
60 n 96 s
In absolute mode (serial interface and PWM output), 610 rpm is the maximum speed, where 1024 readings per revolution can be obtained. In incremental mode, the maximum error caused by the sampling rate of the ADCs is 0/+96s. It has a peak of 1LSB = 0.35 at 610 rpm. At higher speeds this error is reduced again due to interpolation and the output delay remains at 192s as the DSP requires two sampling periods (2x96s) to synthesize and redistribute any missing pulses. Incremental Mode: Incremental encoders are usually required to produce no missing pulses up to several thousand rpm's. Therefore, the AS5040 has a built-in interpolator, which ensures that there are no missing pulses at the incremental outputs for rotational speeds of up to 10,000 rpm, even at the highest resolution of 10 bits (512 pulses per revolution). Absolute Output Mode Incremental Output Mode no missing pulses @ 10 bit resolution (512ppr): max. speed = 10,000 rpm
*1
: statistically, 1 sigma represents 68.27% of readings, 3 sigma represents 99.73% of readings.
610rpm = 1024 samples / turn 122rpm = 512 samples / turn 2441rpm = 256 samples / turn
15.3 High Speed Operation
15.3.1 Sampling Rate
etc...
Table 7: Speed performance
The AS5040 samples the angular value at a rate of 10.42k samples per second. Consequently, the incremental, as well as the absolute outputs are updated each 96s. At a stationary position of the magnet, this sampling rate creates no additional error.
Revision 1.6, 03-Oct-06
15.4 Propagation Delays
The propagation delay is the delay between the time that a sample is taken until it is converted and available as angular data. This delay is 48s for the absolute interface and 192s for the incremental interface.
www.austriamicrosystems.com Page 18 of 28
AS5040 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
Using the SSI interface for absolute data transmission, an additional delay must be considered, caused by the asynchronous sampling (t= 0...1/fs) and the time it takes the external control unit to read and process the data.
15.6 Temperature
15.6.1 Magnetic Temperature Coefficient
15.4.1
Angular Error Caused by Propagation Delay
A rotating magnet will therefore cause an angular error caused by the output delay. This error increases linearly with speed:
esampling = rpm 6 * prop.delay
where: esampling = angular error [] rpm = rotating speed [rpm] prop.delay = propagation delay [seconds] Note: since the propagation delay is known, it can be automatically compensated by the control unit that is processing the data from the AS5040, thus reducing the angular error caused by speed.
One of the major benefits of the AS5040 compared to linear Hall sensors is that it is much less sensitive to temperature. While linear Hall sensors require a compensation of the magnet's temperature coefficient, the AS5040 automatically compensates for the varying magnetic field strength over temperature. The magnet's temperature drift does not need to be considered, as the AS5040 operates with magnetic field strengths from 45...75mT.
15.5 Internal Timing Tolerance
The AS5040 does not require an external ceramic resonator or quartz. All internal clock timings for the AS5040 are generated by an on-chip RC oscillator. This oscillator is factory trimmed to 5% accuracy at room temperature (10% over full temperature range). This tolerance influences the ADC sampling rate and the pulse width of the PWM output:
Example: A NdFeB magnet has a field strength of 75mT @ -40C and a temperature coefficient of -0.12% per Kelvin. The temperature change is from -40 to +125 = 165K. The magnetic field change is: 165 x -0.12% = -19.8%, which corresponds to 75mT at -40C and 60mT at 125C . The AS5040 can compensate for this temperature related field strength change automatically, no user adjustment is required.
15.6.2
Accuracy over Temperature
The influence of temperature in the absolute accuracy is very low. While the accuracy is 0.5 at room temperature, it may increase to 0.9 due to increasing noise at high temperatures.
Absolute output; SSI interface: A new angular value is updated every 100s (typ.) Incremental outputs: the incremental outputs are updated every 100s (typ.) PWM output: A new angular value is updated every 100s (typ.). The PWM pulse timings Ton and Toff also have the same tolerance as the internal oscillator. If only the PWM pulse width Ton is used to measure the angle, the resulting value also has this timing tolerance. However, this tolerance can be cancelled by measuring both Ton and Toff and calculating the angle from the duty cycle (see section 6):
15.6.3
Timing Tolerance over Temperature
The internal RC oscillator is factory trimmed to 5%. Over temperature, this tolerance may increase to 10%. Generally, the timing tolerance has no influence in the accuracy or resolution of the system, as it is used mainly for internal clock generation. The only concern to the user is the width of the PWM output pulse, which relates directly to the timing tolerance of the internal oscillator. This influence however can be cancelled by measuring the complete PWM duty cycle (see 15.5).
Position =
t on 1025 (ton + toff ) - 1
Revision 1.6, 03-Oct-06
www.austriamicrosystems.com
Page 19 of 28
AS5040 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
16 Electrical Characteristics
16.1 Absolute Maximum Ratings (non operating)
Stresses beyond those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. These are stress ratings only. Functional operation of the device at these or any other conditions beyond those indicated under "Operating Conditions" is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.
Parameter DC supply voltage at pin VDD5V DC supply voltage at pin VDD3V3 Input pin voltage Input current (latchup immunity) Electrostatic discharge Storage temperature Body temperature (Lead-free package) Humidity non-condensing
Symbol VDD5V VDD3V3 Vin Iscr ESD Tstrg TBody H
Min -0.3 -0.3 -0.3 -0.3 -100
Max 7 5 VDD5V +0.3 7.5 100 2
Unit V V V mA kV C C %
Note
Pins MagIncn, MagDecn, CLK, CSn, Pin Prog Norm: JEDEC 78 Norm: MIL 883 E method 3015 Min - 67F ; Max +257F t=20 to 40s, Norm: IPC/JEDEC J-Std-020C Lead finish 100% Sn "matte tin"
-55
125 260
5
85
16.2 Operating Conditions
Parameter Ambient temperature Supply current External supply voltage at pin VDD5V Internal regulator output voltage at pin VDD3V3 External supply voltage at pin VDD5V ,VDD3V3 Symbol Tamb Isupp VDD5V VDD3V3 VDD5V VDD3V3 4.5 3.0 3.0 3.0 Min -40 16 5.0 3.3 3.3 3.3 Typ Max 125 21 5.5 3.6 3.6 3.6 Unit C mA V V V V 5V operation 3.3V operation (pins VDD5V and VDD3V3 connected) Note -40F...+257F
16.3 DC Characteristics for Digital Inputs and Outputs
16.3.1 CMOS Schmitt-Trigger Inputs: CLK, CSn (CSn = internal Pull-up)
(operating conditions: Tamb = -40 to +125C, VDD5V = 3.0-3.6V (3V operation) VDD5V = 4.5-5.5V (5V operation) unless otherwise noted)
Parameter High level input voltage Low level input voltage Schmitt Trigger hysteresis Input leakage current Pull-up low level input current
Symbol VIH VIL VIon- VIoff ILEAK IiL
Min 0.7 * VDD5V
Max 0.3 * VDD5V
Unit V V V A A
Note Normal operation
1 -1 -30 1 -100
CLK only CSn only, VDD5V: 5.0V
Revision 1.6, 03-Oct-06
www.austriamicrosystems.com
Page 20 of 28
AS5040 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
16.3.2
CMOS / Program Input: Prog
(operating conditions: Tamb = -40 to +125C, VDD5V = 3.0-3.6V (3V operation) VDD5V = 4.5-5.5V (5V operation) unless otherwise noted)
Parameter High level input voltage High level input voltage Low level input voltage Pull-down high level input current
Symbol VIH VPROG VIL IiL
Min 0.7 * VDD5V
Max 5
Unit V V V A
Note
See "programming conditions" 0.3 * VDD5V 100
During programming
VDD5V: 5.5V
16.3.3
CMOS Output Open Drain: MagINCn, MagDECn
(operating conditions: Tamb = -40 to +125C, VDD5V = 3.0-3.6V (3V operation) VDD5V = 4.5-5.5V (5V operation) unless otherwise noted)
Parameter Low level output voltage Output current Open drain leakage current
Symbol VOL IO IOZ
Min
Max VSS+0.4 4 2 1
Unit V mA A
Note VDD5V: 4.5V VDD5V: 3V
16.3.4
CMOS Output: A, B, Index, PWM
(operating conditions: Tamb = -40 to +125C, VDD5V = 3.0-3.6V (3V operation) VDD5V = 4.5-5.5V (5V operation) unless otherwise noted)
Parameter High level output voltage Low level output voltage Output current
Symbol VOH VOL IO
Min VDD5V-0.5
Max VSS+0.4 4 2
Unit V V mA mA
Note
VDD5V: 4.5V VDD5V: 3V
16.3.5
Tristate CMOS Output: DO
(operating conditions: Tamb = -40 to +125C, VDD5V = 3.0-3.6V (3V operation) VDD5V = 4.5-5.5V (5V operation) unless otherwise noted)
Parameter High level output voltage Low level output voltage Output current Tri-state leakage current
Symbol VOH VOL IO IOZ
Min VDD5V -0.5
Max VSS+0.4 4 2 1
Unit V V mA mA A
Note
VDD5V: 4.5V VDD5V: 3V
Revision 1.6, 03-Oct-06
www.austriamicrosystems.com
Page 21 of 28
AS5040 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
16.4 Magnetic Input Specification
(operating conditions: Tamb = -40 to +125C, VDD5V = 3.0-3.6V (3V operation) VDD5V = 4.5-5.5V (5V operation) unless otherwise noted)
Two-pole cylindrical diametrically magnetised source: Parameter Diameter Thickness Magnetic input field amplitude Magnetic offset Field non-linearity Input frequency (rotational speed of magnet) fmag_abs fmag_inc Symbol dmag tmag Bpk Boff Min 4 2.5 45 75 10 5 10 166 0.25 Displacement radius Disp 0.485 Chip placement tolerance Recommended magnet material and temperature drift -0.12 -0.035 0.235 mm
%/K
Typ 6
Max
Unit mm mm mT mT % Hz Hz
Note Recommended magnet: O 6mm x 2.5mm for cylindrical magnets Required vertical component of the magnetic field strength on the die's surface, measured along a concentric circle with a radius of 1.1mm Constant magnetic stray field Including offset gradient Absolute mode: 600 rpm @ readout of 1024 positions (see table 6) Incremental mode: no missing pulses at rotational speeds of up to 10,000 rpm (see table 6) Max. X-Y offset between defined IC package center and magnet axis (see Figure 20) Max. X-Y offset between chip center and magnet axis. Placement tolerance of chip within IC package (see Figure 22) NdFeB (Neodymium Iron Boron) SmCo (Samarium Cobalt)
mm
Revision 1.6, 03-Oct-06
www.austriamicrosystems.com
Page 22 of 28
AS5040 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
16.5 Electrical System Specifications
(operating conditions: Tamb = -40 to +125C, VDD5V = 3.0-3.6V (3V operation) VDD5V = 4.5-5.5V (5V operation) unless otherwise noted)
Parameter Resolution 7 bit 8 bit 9 bit 10 bit Integral non-linearity (optimum) Integral non-linearity (optimum)
Symbol RES
Min
Typ
Max 10
Unit bit
Note 0.352 deg Adjustable resolution only available for incremental output modes; Least significant bit, minimum step
2.813 LSB 1.406 0.703 0.352 INLopt INLtemp 0.5 0.9 deg deg Maximum error with respect to the best line fit. Verified at optimum magnet placement, Tamb =25 C. Maximum error with respect to the best line fit. Verified at optimum magnet placement , Tamb = -40 to +125C Best line fit = (Errmax - Errmin) / 2 Over displacement tolerance with 6mm diameter magnet, Tamb = -40 to +125C 10bit, no missing codes RMS equivalent to 1 sigma Incremental modes only DC supply voltage 3.3V (VDD3V3) DC supply voltage 3.3V (VDD3V3) Until offset compensation finished Includes delay of ADC and DSP Calculation over two samples Internal sampling rate, Tamb = 25C Internal sampling rate, Tamb = -40 to +125C Max. clock frequency to read out serial data deg
Integral non-linearity Differential non-linearity Transition noise Hysteresis Power-on reset thresholds
On voltage; 300mV typ. hysteresis Off voltage; 300mV typ. hysteresis
INL DNL TN Hyst Von Voff tPwrUp tdelay 1,37 1.08 0.704 2.2 1.9
1.4 0.176 0.12
deg deg Deg RMS deg
2.9 2.6 50 48 192
V V ms s s kHz MHz
Power-up time System propagation delay absolute output System propagation delay incremental output Sampling rate for absolute output Read-out frequency
9.90 fS CLK 9.38
10.42 10.42
10.94 11.46 1
1023
10bit code
Actual curve
2 1 0
1023 TN DNL+1LSB INL 0.35 512 Ideal curve
512
0 0 180 360
[degrees]
Page 23 of 28
Figure 25: Integral and differential non-linearity example (exaggerated curve) Revision 1.6, 03-Oct-06 www.austriamicrosystems.com
AS5040 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
Integral Non-Linearity (INL) is the maximum deviation between actual position and indicated position. Differential Non-Linearity (DNL) is the maximum deviation of the step length from one position to the next. Transition Noise (TN) is the repeatability of an indicated position.
16.6 Timing Characteristics
Synchronous Serial Interface (SSI)
(operating conditions: Tamb = -40 to +125C, VDD5V = 3.0-3.6V (3V operation) VDD5V = 4.5-5.5V (5V operation) unless otherwise noted)
Parameter Data output activated (logic high) First data shifted to output register Start of data output Data output valid Data output tristate Pulse width of CSn Read-out frequency
Symbol t DO active tCLK FE T CLK / 2 t DO valid t DO tristate t CSn fCLK
Min
Typ
Max 100
Unit ns ns ns
Note Time between falling edge of CSn and data output activated Time between falling edge of CSn and first falling edge of CLK Rising edge of CLK shifts out one bit at a time Time between rising edge of CLK and data output valid After the last bit DO changes back to "tristate" CSn = high; To initiate read-out of next angular position Clock frequency to read out serial data
500 500 357 375 394 100 500 >0 1
ns ns ns MHz
Pulse Width Modulation Output
(operating conditions: Tamb = -40 to +125C, VDD5V = 3.0-3.6V (3V operation) VDD5V = 4.5-5.5V (5V operation) unless otherwise noted)
Parameter PWM frequency Minimum pulse width Maximum pulse width Incremental Outputs
Symbol f PWM PW MIN PW MAX
Min 0.927 0.878 0.95 973
Typ 0.976 0.976 1 1024
Max 1.024 1.074 1.05 1075
Unit KHz s s
Note Signal period = 1025s 5% at Tamb = 25C =1025s 10% at Tamb = -40 to +125C Position 0d; angle 0 degree Position 1023d; angle 359.65 degree
(operating conditions: Tamb = -40 to +125C, VDD5V = 3.0-3.6V (3V operation) VDD5V = 4.5-5.5V (5V operation) unless otherwise noted)
Parameter Incremental outputs valid after power-up Directional indication valid
Symbol t Incremental
outputs valid
Min
Typ
Max 500 500
Unit ns ns
Note Time between first falling edge of CSn after power-up and valid incremental outputs Time between rising or falling edge of LSB output and valid directional indication
t Dir valid
Revision 1.6, 03-Oct-06
www.austriamicrosystems.com
Page 24 of 28
AS5040 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
16.7 Programming Conditions
(operating conditions: Tamb = -40 to +125C, VDD5V = 3.0-3.6V (3V operation) VDD5V = 4.5-5.5V (5V operation) unless otherwise noted)
Parameter Programming enable time Write data start Write data valid Load programming data Rise time of VPROG before CLK PROG Hold time of VPROG after CLK PROG Write data - programming CLK PROG CLK pulse width Hold time of Vprog after programming Programming voltage Programming voltage off level Programming current Analog read CLK Programmed zener voltage (log.1)
Unprogrammed zener voltage (log. 0)
Symbol t Prog enable t Data in t Data in valid t Load PROG t PrgR t PrgH CLK PROG t PROG t PROG
finished
Min 2 2 250 3 0 0
Typ
Max
Unit s s ns s s
Note Time between rising edge at Prog pin and rising edge of CSn Write data at the rising edge of CLKPROG
5 250
s kHz s s During programming; 16 clock cycles Programmed data is available after next power-on Must be switched off after zapping Line must be discharged to this level During programming Analog readback mode VRef-VPROG during analog readback mode (see 9.6)
1.8 2 7.3 0
2
2.2
V PROG V ProgOff I PROG
CLKAread Vprogrammed Vunprogrammed
7.4
7.5 1 130
100 100
V V mA
kHz mV V
1
Revision 1.6, 03-Oct-06
www.austriamicrosystems.com
Page 25 of 28
AS5040 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
17 Package Drawings and Markings
16-Lead Shrink Small Outline Package SSOP-16
AYWWIZZ AS5040
Dimensions
Symbol A A1 A2 b c D E E1 e K L 0 0.63 mm Min 1.73 0.05 1.68 0.25 0.09 6.07 7.65 5.2 Typ 1.86 0.13 1.73 0.315 6.20 7.8 5.3 0.65 0.75 8 0.95 0 .025 Max 1.99 0.21 1.78 0.38 0.20 6.33 7.9 5.38 Min .068 .002 .066 .010 .004 .239 .301 .205 inch Typ .073 .005 .068 .012 .244 .307 .209 .0256 .030 8 .037 Max .078 .008 .070 .015 .008 .249 .311 .212
Marking: AYWWIZZ A: Pb-free Identifier Y: Last Digit of Manufacturing Year WW: Manufacturing Week I: Plant Identifier ZZ: Traceability Code
JEDEC Package Outline Standard: MO - 150 AC Thermal Resistance Rth(j-a): typ. 151 K/W in still air, soldered on PCB IC's marked with a white dot or the letters "ES" denote Engineering Samples
18 Packing Options
Delivery: Tape and Reel (1 reel = 2000 devices) Tubes (1 box = 100 tubes a 77 devices)
Order # AS5040ASSU Order # AS5040ASST
for delivery in tubes for delivery in tape and reel
Revision 1.6, 03-Oct-06
www.austriamicrosystems.com
Page 26 of 28
AS5040 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
19 Recommended PCB Footprint
Recommended Footprint Data A B C D E mm 9.02 6.16 0.46 0.65 5.01 inch 0.355 0.242 0.018 0.025 0.197
20 Revision History
Revision 1.6 1.5 1.4 Date Oct.3,2006 Mar. 24. 2006 Oct.25, 2005 Sep.27, 2005 Description
Update ISupp (16.2), Boff (16.4), TN (16.5), tDOvalid (16.6), definition of magnet thickness New Figure 14 pulsed OTP prog., modify Figure 15, added prog. conditions table 16.7 modify Figure 1, thermal resistance (Package Drawings and Markings) update incremental output signals (Figure 7), propagation delay. thermal resistance of IC package add description of programming in Daisy Chain mode (4.2.1) add x-y-misalignment range for magnet over die vs. magnet over IC package (16.4) add power-up rise time of external supply in 3.3V mode (16.2) update block diagram (Figure 3) update definition of Parity bit add description of incremental power-up lock option (5.2.1) add specification of external components during programming (9) add Figure 15: OTP programming connection diagram add description of analog readback mode (9.6) update description of alignment mode (0) replace Figure 23(magnet placement) add simulation model (1)
1.3
Feb.08,2005
1.2
Nov. 24, 2004
add timing diagram for Daisy Chain mode (Figure 6) add description of diagnostic features (0) add description of angular errors (15) update max. soldering temperature according to JEDEC-Std. (16.1) update maximum current consumption (16.2) remove option for 1bit Hysteresis (0) add nonlinearity parameter for centered magnet over temperature (0) update power-up time (0) modify Figure 25 update PWM timing tolerance over temperature (16.6) update device number in ordering information (18)
1.1 1.0
Jun. 11, 2004 April. 2, 2004
updated Fig.7 added Fig.8 : Daisy Chain mode
Revision 1.6, 03-Oct-06
www.austriamicrosystems.com
Page 27 of 28
AS5040 10-BIT PROGRAMMABLE MAGNETIC ROTARY ENCODER
21 Contact
21.1 Headquarters
austriamicrosystems AG Fax: +43 3136 525 01 info@austriamicrosystems.com?subject=AS5040 www.austriamicrosystems.com A 8141 Schloss Premstatten, Austria Phone: Copyright
Devices sold by austriamicrosystems are covered by the warranty and patent indemnification provisions appearing in its Term of Sale. austriamicrosystems makes no warranty, express, statutory, implied, or by description regarding the information set forth herein or regarding the freedom of the described devices from patent infringement. austriamicrosystems reserves the right to change specifications and prices at any time and without notice. Therefore, prior to designing this product into a system, it is necessary to check with austriamicrosystems for current information. This product is intended for use in normal commercial applications. Copyright (c) 2006 austriamicrosystems. Trademarks registered (R). All rights reserved. The material herein may not be reproduced, adapted, merged, translated, stored, or used without the prior written consent of the copyright owner. To the best of its knowledge, austriamicrosystems asserts that the information contained in this publication is accurate and correct. However, austriamicrosystems shall not be liable to recipient or any third party for any damages, including but not limited to personal injury, property damage, loss of profits, loss of use, interruption of business or indirect, special, incidental or consequential damages, of any kind, in connection with or arising out of the furnishing, performance or use of the technical data herein. No obligation or liability to recipient or any third party shall arise or flow out of austriamicrosystems rendering of technical or other services.
+43 3136 500 0
Revision 1.6, 03-Oct-06
www.austriamicrosystems.com
Page 28 of 28


▲Up To Search▲   

 
Price & Availability of AS5040

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X